#ifndef FUNC_H
#define FUNC_H

#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
#include <dirent.h>
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>

#define TRUE 1
#define LISTEN_PORT 3499
#define dataLen 1024

extern char currentDirPath[200];
extern char currentDirName[30];
extern char help[];

extern char *getDirName(char *dirPathName);
extern void cmd_pwd(int sock);
extern void cmd_dir(int sock);
extern void cmd_cd(int sock, char *dirName);
extern void cmd_cdback(int sock);
extern void cmd_help(int sock);
extern void cmd_get(int sock, char *fileName);
extern void cmd_put(int sock, char *fileName);



#endif
